home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / doc.zoo / doc / Makefile < prev    next >
Encoding:
Makefile  |  1989-04-03  |  2.0 KB  |  76 lines

  1. #                        Copyright (c) 1988 Bellcore
  2. #                            All Rights Reserved
  3. #       Permission is granted to copy or use this program, EXCEPT that it
  4. #       may not be sold for profit, the copyright notice must be reproduced
  5. #       on copies, and credit should be given to Bellcore where it is due.
  6. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  
  8. #    $Header: Makefile,v 4.10 88/07/21 12:50:30 sau Exp $
  9. #    $Source: /tmp/mgrsrc/doc/RCS/Makefile,v $
  10.  
  11. #    mgr library documentation
  12.  
  13. INSDIR=$(INSROOT)/man
  14.  
  15. FILES1 = \
  16. bounce.1 browse.1 bury.1 c_menu.1 clock.1 \
  17. clock2.1 close.1 color.1 cut.1 cycle.1 \
  18. dmgr.1 ether.1 font.1 iconmail.1 iconmsgs.1 \
  19. invert_colormap.1 lock.1 maze.1 menu.1 mgr.1 mgrmail.1 \
  20. mgrmsgs.1 oclose.1 omgrmail.1 overlay.1 rotate.1 \
  21. set_colormap.1 set_console.1 set_termcap.1 shape.1 show.1 \
  22. snap.1 startup.1 stat.1 stringart.1 tjfilter.1 \
  23. window_print.1 zoom.1
  24.  
  25. FILES5 = bitmap.5 font.5
  26. PRINT = hproff
  27.  
  28. FILES= $(FILES1) $(FILES5)
  29. START=.
  30. CPIO=doc.cpio
  31.  
  32. MAKE=make
  33.  
  34. all small:
  35.  
  36. print:    $(FILES)
  37.     $(PRINT) -man $(FILES)
  38.     cd usrman;  $(MAKE) PRINT=$(PRINT) all
  39.  
  40. smallinstall:    install
  41.  
  42. install:    $(INSDIR) $(INSDIR)/man1 $(INSDIR)/man5
  43. #        Do not install the files if INSDIR is the current directory.
  44. #        This stuff with ReMoveThisFile is to get around symbolic links.
  45.     rm -rf ./ReMoveThisFile
  46.     touch $(INSDIR)/ReMoveThisFile
  47.     if [ ! -f ./ReMoveThisFile ]; then \
  48.         (cd $(INSDIR)/man1;  rm -f $(FILES1)); \
  49.          cp $(FILES1) $(INSDIR)/man1; \
  50.         (cd $(INSDIR)/man5;  rm -f $(FILES5)); \
  51.          cp $(FILES5) $(INSDIR)/man5; \
  52.     else \
  53.         echo ">>  $(INSDIR) == current directory; no files copied"; \
  54.     fi
  55.     rm -rf $(INSDIR)/ReMoveThisFile
  56.     cd usrman; $(MAKE) install
  57.  
  58.  
  59. $(INSDIR) $(INSDIR)/man1 $(INSDIR)/man5:
  60.     mkdir $@
  61.  
  62. clean clobber:
  63.     cd usrman; $(MAKE) $@
  64.  
  65. list:
  66.     @for i in Makefile $(FILES); do \
  67.         echo "$(START)/$$i"; \
  68.     done
  69.     @echo "$(START)/usrman";
  70.     @if [ -d usrman ] ; then \
  71.         cd usrman; $(MAKE) START=$(START)/usrman list; cd ..; \
  72.     fi
  73.  
  74. cpio:
  75.     $(MAKE) -s list | cpio -ocv > $(CPIO)
  76.